package com.woniuxy.myfinance.mapper;

import com.woniuxy.commons.entity.Finance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-11-16 10:56
 */


@Mapper
public interface FinanceMapper {


    //添加员工
    public void addFinance(Finance finance);

    //修改员工信息
    public void updateFinance(@Param("finance") Finance finance);


    //查询所有员工信息
    public List<Finance> selectAllFinance(
            @Param("finance") Finance finance,
            @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    //分页的数量
    public int selectFinanceCountBylimit(@Param("finance") Finance finance);


    //根据id删除
    public void delectFinanceByid(int financeid);





}
